package edu.sctu.springbootdemo.service;

import edu.sctu.springbootdemo.entity.UserEntity;
import edu.sctu.springbootdemo.repo.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserService {

    @Autowired
    private UserRepo userRepo;

    public List<UserEntity> findAll(){

        return (List<UserEntity>) userRepo.findAll();
    }
}
